package top.zhan.builder;

/**
 * 具体建造者，实现Builder来创建不同的产品
 * @author Zhan
 * @date 2022/9/27 22:52
 */
public class LowComputerBuilder implements ComputerBuilder{

    private Computer computer = new Computer();

    @Override
    public void builderCpu() {
        computer.setCpu("低配 CPU");
    }

    @Override
    public void builderMainBoard() {
        computer.setMainBoard("低配 主板");
    }

    @Override
    public void builderDisk() {
        computer.setDisk("低配 磁盘");
    }

    @Override
    public void builderPower() {
        computer.setPower("低配 电源");
    }

    @Override
    public void builderMemory() {
        computer.setMemory("低配 内存");
    }

    @Override
    public Computer createComputer() {
        return computer;
    }
}
